function hasNumber(rec_coll,num)
{
var 	result=false;

  result = rec_coll.slice(0,2).some(function checkexist(entry)
   {
   	if(entry == num)return true;
   	}
  );
 return result;//not in  	 	
}
hasNumber([10,20,30],10);